package com.etc.singleton;

import java.util.Calendar;

/**
 * 单例模式4 ->懒汉
 */
public class Singleton5 {
    //私有静态内部类=>JVM
    private static class SingletonHolder {  
    private static final Singleton5 INSTANCE = new Singleton5();  
    }  
    private Singleton5 (){}  
    public static final Singleton5 getInstance() {  
    return SingletonHolder.INSTANCE;  
    }


}
